package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;


/**
 * 文档模板类型
 * @author longwei
 * @date 2016/11/08
 * @version 1.0
 */
@Entity
@Table(name="zf_product_doc_type")
public class ProductDocType extends BaseEntity{

	/**
	 * 类型名称
	 */
	@Column(length=255)
	private String name;
	
	/**
	 * 父类型
	 */
	@ManyToOne
	@JoinColumn(name="parent_id")
	private ProductDocType parent;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ProductDocType getParent() {
		return parent;
	}

	public void setParent(ProductDocType parent) {
		this.parent = parent;
	}

}
